package com.helpustotravel.model.jdo;

import java.util.Date;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;
import com.google.appengine.api.datastore.Text;

@PersistenceCapable
public class Tache {
    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Key key;

    @Persistent
    private String adresseIp;
    
    @Persistent
    private Date date;
    
    @Persistent
    private String nomTache;
    
    @Persistent
    private Text arguments;
    
    public Tache() {
    	this.adresseIp = "";
    	this.date = new Date();
    	this.nomTache = "";
    	this.arguments = new Text("");
    }

	public Key getKey() {
		return key;
	}

	public void setKey(Key key) {
		this.key = key;
	}

	public String getAdresseIp() {
		return adresseIp;
	}

	public void setAdresseIp(String adresseIp) {
		this.adresseIp = adresseIp;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public String getNomTache() {
		return nomTache;
	}

	public void setNomTache(String nomTache) {
		this.nomTache = nomTache;
	}

	public String getArguments() {
		return arguments.getValue();
	}

	public void setArguments(String arguments) {
		this.arguments = new Text(arguments);
	}
    
}